package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.yuyou.train.service.api.lesson.dto.ResourceDetailDTO;
import com.yuyou.train.service.api.lesson.dto.ResourcePageDTO;
import com.yuyou.train.service.api.lesson.entity.Resource;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface ResourceMapper {
    int deleteByPrimaryKey(String id);

    int insert(Resource record);

    ResourceDetailDTO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Resource record);
    
    List<ResourcePageDTO> findResPageList(Pagination<ResourcePageDTO> p);
    
    int findResPageCount(Pagination<ResourcePageDTO> p);
    
    List<Resource> findResourceByExamId(String examId);

}